package com.lxp.basic.继承案例发红包;

/**
 * @ClassName User
 * @Aauthor swd
 * @Create 2019-12-04 13:38
 */

public class User {
    private String userName;
    private double leftMoney;

    public User() {
    }

    public User(String userName, double leftMoney) {
        this.userName = userName;
        this.leftMoney = leftMoney;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public double getLeftMoney() {
        return leftMoney;
    }

    public void setLeftMoney(double leftMoney) {
        this.leftMoney = leftMoney;
    }

    public void show() { System.out.println("用户名:"+ userName +" , 余额为:" + leftMoney + "元"); }
}
